package com.lsc.www.day09.hm;

import java.util.Scanner;

public class h9 {

    public static void main(String[] args) {

        System.out.println("输入学生的成绩：");
        Scanner sc = new Scanner(System.in);
        int score = sc.nextInt(); // 成绩

        if (score >= 90&& score <= 100) {
            System.out.println("A");
        } else if (score >= 80 && score < 89) {
            System.out.println("B");
        } else if (score >= 70 && score < 79) {
            System.out.println("C");
        } else if (score >= 60 && score < 69) {
            System.out.println("D");
        }else if (score < 60) {
            System.out.println("E");
        }else {
            System.out.println("请重新输入：");
        }
    }
}
